﻿using Cl.Utils.Primitives.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Service.Redis
{
    public interface IRedisService : IScopedService
    {
        bool Set(string key, string value, TimeSpan? expiry = null);
        string? Get(string key);
        bool Delete(string key);
        long Increment(string key, long value = 1);
        long Decrement(string key, long value = 1);
    }
}
